package mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author jackcfan
 * @date 22/8/31
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user")
public class UserEntity extends Model<UserEntity> {
  @TableId
  private Long id;

  @TableField("name")
  private String userName;

  private Integer age;

  private String email;

  private Date updateTime;
}
